<div id="content">
    
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="50%"><?php echo $formFind; ?></td>
    <td width="50%"><?php echo " " ?></td> 
  </tr>
</table>

			<div class="content-box"><!-- Start Content Box -->
				
		
				<?php echo notify_get_messages('articles'); ?>
     <div class="grid-view" id="admins-grid">
<?php         
        $tmpl = array ( 'table_open'  => '<table border="0" cellpadding="0" cellspacing="0" class="items" >' );
        $this->table->set_template($tmpl);
        
        $this->table->set_heading(smHeaderSort('id', 'articles', t('id')), smHeaderSort('title', 'articles', t('title')), smHeaderSort('summary', 'articles', t('summary')), smHeaderSort('contents', 'articles', t('contents')), smHeaderSort('created', 'articles', t('created')), smHeaderSort('changed', 'articles', t('changed')), '<input type="button" value="'.t('Add').'" 
            class="ibutton green" onclick="window.location=\''.site_url('articles/add').'\'" />');
        foreach ($query->result_array() as $row) {
            $urlEdit = anchor(site_url("articles/edit/".$row["id"]), '<img src="'.root_url().'data/admin/update.png" alt="Update">', 'title="'.t('Sửa').'" class="btnEdit"');
            $urlDel = ianchor('#', '<img src="'.root_url().'data/admin/delete.png" alt="Delete">', 'onclick="if(window.confirm(\''.t('msg_del').' '.$row["title"].'\')) 
	               window.location=\''.site_url("articles/del/".$row["id"]).'\';" class="btnDel" title="'.t('Xóa').'"');
            $this->table->add_row($row["id"], $row["title"], $row["summary"], $row["contents"], $row["created"], date("d/m/Y", $row["changed"]),  $urlEdit. nbs(3) . $urlDel);
        }
        
        echo $this->table->generate();
    
 ?>       
 <tfoot>
                      <tr>
                        <td colspan="5"><div class="pagination"><?php echo $paging;?></div>
                          <!-- End .pagination -->
                          <div class="clear"></div></td>
                      </tr>
                    </tfoot>         			    
     </div> 
				<!-- End .content-box-content -->
				
			</div> <!-- End .content-box --><!-- End .content-box --><!-- End .content-box -->
<div class="clear"></div>
		
			
		</div> <!-- End #main-content -->